package com.api.gbhg.liuwenbo.version2.dao;

import weaver.conn.RecordSet;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description
 * @Author
 * @Date
 */
public class NonCentralTreeDBUtil2 {

    /**
     * 获取非中央所有分类信息
     * @return
     */
    public static Map<String,Object> getSrysfl(){
        RecordSet rs = new RecordSet();
        String sql = " select id,mc from uf_srysfl ";
        rs.executeQuery(sql);
        Map<String,Object> map = new HashMap<>();
        while (rs.next()){
            map.put(rs.getString("id"),rs.getString("mc"));
        }
        return map;
    }
}
